/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sa_prakt1.bl.services.impl.ejb;

import java.util.ArrayList;
import java.util.List;
import sa_prakt1.bl.entity.interfaces.Entry;
import sa_prakt1.bl.entity.interfaces.Forum;
import sa_prakt1.bl.entity.interfaces.Member;
import sa_prakt1.bl.services.interfaces.Community;
import sa_prakt1.bl.services.interfaces.SamCommCreator;

/**
 *
 * @author Andreas
 */
public class EjbCommunity implements Community {

    private static EjbCommunity instance;

    protected EjbCommunity() {
    }

    /**
     * Singleton pattern
     *
     * @return Community
     */
    public static EjbCommunity getInstance() {
        if (instance == null) {
            instance = new EjbCommunity();
        }
        return instance;
    }

    @Override
    public void registerMemberInForum(Member m, Forum f) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void addMember(Member m) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public boolean login(String nick, String pw) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void addForum(Member m, Forum f) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void addEntry(Member author, Forum forum, String title, String text) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public ArrayList<Entry> findEntriesByAuthor(Member m) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public ArrayList<Entry> findEntriesByTitle(String title) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public SamCommCreator getCreator() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public List<Forum> getForenlist() {
      throw new UnsupportedOperationException("Not supported yet.");
    }

    public List<Member> getMemberlist() {
      throw new UnsupportedOperationException("Not supported yet.");
    }
}
